package com.summer.data.rs.datatype;

/**
 * @author 345480567@qq.com
 */

public class Page<T> {
    private Integer pageNo = 1;
    private Integer pageSize = 10;
    private Integer recordCount = 0;

    protected T data;

    public Page() {
    }

    public Page(T t) {
        this.data = t;
    }

    public Page(PageInfo pageInfo, Integer recordCount) {
        this.pageNo = pageInfo.getPageNo();
        this.pageSize = pageInfo.getPageSize();
        this.recordCount = recordCount;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(Integer recordCount) {
        this.recordCount = recordCount;
    }

    public T getData() {
        return data;
    }
}

